Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties


Working With Media Samples

The Movie Toolbox provides a number of functions that allow applications to determine information about a movie's sample data. This section discusses these functions. Refer to "Adding Samples to Media Structures" beginning on page 2-254 for information about functions that allow you to retrieve sample data from a media.

Your application can use the GetMovieDataSize, GetTrackDataSize, and GetMediaDataSize functions to determine the size, in bytes, of the data stored in a media, movie, or track.

You can use the GetMediaSampleDescriptionCount and GetMediaSampleDescription functions to retrieve a media's sample descriptions. The SetMediaSampleDescription function enables you to change the contents of a particular sample description associated with a media. The GetMediaSampleCount function determines the number of samples in a media. The SampleNumToMediaTime and MediaTimeToSampleNum functions allow you to convert from a time value to a sample number and vice versa. You can use the functions described in "Finding Interesting Times" beginning on page 2-180 to locate specific samples in a media.


Subtopics
GetMovieDataSize
GetTrackDataSize
GetMediaDataSize
GetMediaSampleCount
GetMediaSampleDescriptionCount
GetMediaSampleDescription
SetMediaSampleDescription
MediaTimeToSampleNum
SampleNumToMediaTime

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996